package com.xoa.service.inv;

import com.xoa.model.inv.OmReturn;
import com.xoa.util.ToJson;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

public interface OmReturnService {
    //添加数据
    public int insertSales(OmReturn omReturn, Map<String, Object> maps);
    //查询所有数据
    public List<OmReturn> selectAll(Map<String, Object> map);

    //查询回显数据
    public OmReturn selectByPrimaryKey(Integer returnId);

    //根据ID删除数据
    public int deleteByPrimaryKey(Integer returnId);

    //根据id更新数据
    public int updateByPrimaryKeySelective(OmReturn omReturn,String productType, String enterName, String enterSpecs, String enterCode);

    //导出数据
    public ToJson<OmReturn> ExportOmReturn(HttpServletRequest request, HttpServletResponse response, OmReturn omReturn, String beginDate, String isExport);
    //查询所有退货人
    public ToJson<OmReturn> selectUsers();
}
